$(function(){
	$("#return").click(displayTaskList);
	$("#edit-answer").click(initEdit);
	
});

var displayDetail = function(taskId) {
	$("#assi-task-list").hide();
	$("#assi-task-edit-box").show();
	getDetail(taskId);//获取数据
}

var initEdit = function() {
	$("#edit-answer").hide();
	var editorTaskSubmit = new wangEditor('submitDetail');
	editorTaskSubmit.config.menus = [
	    'fullscreen',' | ','bold','underline','italic','strikethrough','eraser',
		'forecolor','bgcolor','quote','fontfamily','fontsize','head','unorderlist',
		'orderlist','alignleft','aligncenter','alignright','link','unlink','table',
		'img','video','insertcode','undo','redo'
    ];
	editorTaskSubmit.config.uploadImgUrl = CONTEXT_PATH + 'resource/editUpload';
	editorTaskSubmit.config.zindex = 20000;
	editorTaskSubmit.create();
	$('#submitDetail').attr('style','height:auto;');
}

var displayTaskList = function() {
	$("#assi-task-list").show();
	$("#assi-task-edit-box").hide();
}
